//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.ruoyi.socket.util.anbaobr;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry;

public class SdkParse {
    public SdkParse() {
    }

    public static Map parseText(String var0) {
        if (var0 != null && !var0.equals("") && var0.length() >= 8 && var0.startsWith("<")) {
            HashMap var1 = new HashMap();
            if (var0.charAt(3) == 'M') {
                switch(var0.charAt(4)) {
                case 'h':
                    var1.put("order", "M");
                    var1.put("type", "h");
                    var1.put("machineId", var0.substring(5, var0.length() - 3));
                    break;
                case 'i':
                    var1.put("order", "M");
                    var1.put("type", "i");
                    var1.put("secretKey", var0.substring(5, 9));
                    var1.put("userType", var0.substring(9, 11));
                    var1.put("hxms", var0.substring(11, 13));
                    var1.put("ynd", var0.substring(13, 15));
                    var1.put("cql", var0.substring(15, 19));
                    var1.put("xqsj", var0.substring(19, 23));
                    var1.put("hqsj", var0.substring(23, 27));
                    var1.put("ylsssj", var0.substring(27, 31));
                    var1.put("hxpl", var0.substring(31, 33));
                    var1.put("txzq", var0.substring(33, 35));
                    var1.put("xqls", var0.substring(35, 39));
                    var1.put("cflx", var0.substring(39, 41));
                    var1.put("cfyz", var0.substring(41, 43));
                    var1.put("ptsj", var0.substring(43, 45));
                    var1.put("hqcf", var0.substring(45, 47));
                    var1.put("hqmzy", var0.substring(47, 49));
                    var1.put("xqyl", var0.substring(49, 51));
                    var1.put("zcyl", var0.substring(51, 53));
                    var1.put("cfc", var0.substring(53, 55));
                    var1.put("zxyl", var0.substring(55, 57));
                    var1.put("zxpl", var0.substring(57, 59));
                    var1.put("ylxz", var0.substring(59, 61));
                    var1.put("hxzhyl", var0.substring(61, 63));
                    var1.put("coomksz", var0.substring(63, 67));
                    var1.put("machineId", var0.substring(67, 91));
                    break;
                case 'j':
                    var1.put("order", "M");
                    var1.put("type", "j");
                    var1.put("secretKey", var0.substring(5, 9));
                    var1.put("qdylsx", var0.substring(9, 11));
                    var1.put("qdylxx", var0.substring(11, 13));
                    var1.put("fztqlsx", var0.substring(13, 15));
                    var1.put("fztqlxx", var0.substring(15, 17));
                    var1.put("hxplsx", var0.substring(17, 19));
                    var1.put("zxsj", var0.substring(19, 21));
                    var1.put("yndsx", var0.substring(21, 23));
                    var1.put("yndxx", var0.substring(23, 25));
                    var1.put("cqlsx", var0.substring(25, 29));
                    var1.put("cqlxx", var0.substring(29, 33));
                    var1.put("hmeyhtsx", var0.substring(33, 35));
                    var1.put("hmeyhtxx", var0.substring(35, 37));
                    var1.put("machineId", var0.substring(37, 61));
                    break;
                case 'k':
                    var1.put("order", "M");
                    var1.put("type", "k");
                    var1.put("qdfy", var0.substring(5, 9));
                    var1.put("pty", var0.substring(9, 13));
                    var1.put("pjy", var0.substring(13, 17));
                    var1.put("hxmzy", var0.substring(17, 21));
                    var1.put("p01", var0.substring(21, 25));
                    var1.put("zdxqls", var0.substring(25, 29));
                    var1.put("zdhqls", var0.substring(29, 33));
                    var1.put("xrcql", var0.substring(33, 37));
                    var1.put("hccql", var0.substring(37, 41));
                    var1.put("xrfztql", var0.substring(41, 45));
                    var1.put("hcfztql", var0.substring(45, 49));
                    var1.put("dymhql", var0.substring(49, 53));
                    var1.put("xqsj", var0.substring(53, 57));
                    var1.put("hqsj", var0.substring(57, 61));
                    var1.put("hxsj", var0.substring(61, 65));
                    var1.put("xhb", var0.substring(65, 69));
                    var1.put("jxtqpl", var0.substring(69, 73));
                    var1.put("zzhxpl", var0.substring(73, 77));
                    var1.put("qz", var0.substring(77, 81));
                    var1.put("jtsyx", var0.substring(81, 85));
                    var1.put("dtsyx", var0.substring(85, 89));
                    var1.put("yrynd", var0.substring(89, 93));
                    var1.put("hxg", var0.substring(93, 97));
                    var1.put("qkhxzs", var0.substring(97, 101));
                    var1.put("etc02", var0.substring(101, 105));
                    var1.put("machineId", var0.substring(105, 129));
                case 'l':
                case 'm':
                default:
                    break;
                case 'n':
                    var1.put("order", "M");
                    var1.put("type", "n");
                    var1.put("tqzt", var0.substring(5, 9));
                    var1.put("qdyl", var0.substring(9, 13));
                    var1.put("hxls", var0.substring(13, 17));
                    var1.put("hxrl", var0.substring(17, 21));
                    var1.put("coobxz", var0.substring(21, 25));
                    var1.put("machineId", var0.substring(25, 49));
                    break;
                case 'o':
                    var1.put("order", "M");
                    var1.put("type", "o");
                    var1.put("qdylpg", b(var0.substring(5, 9)).substring(0, 1));
                    var1.put("qdylpd", b(var0.substring(5, 9)).substring(1, 2));
                    var1.put("fztqlpg", b(var0.substring(5, 9)).substring(2, 3));
                    var1.put("fztqlpd", b(var0.substring(5, 9)).substring(3, 4));
                    var1.put("hzzx", b(var0.substring(5, 9)).substring(4, 5));
                    var1.put("hxplpg", b(var0.substring(5, 9)).substring(5, 6));
                    var1.put("fiopg", b(var0.substring(5, 9)).substring(6, 7));
                    var1.put("fiopd", b(var0.substring(5, 9)).substring(7, 8));
                    var1.put("hxgdtl", b(var0.substring(5, 9)).substring(8, 9));
                    var1.put("llcgqgz", b(var0.substring(5, 9)).substring(9, 10));
                    var1.put("xqfgz", b(var0.substring(5, 9)).substring(10, 11));
                    var1.put("peepfgz", b(var0.substring(5, 9)).substring(11, 12));
                    var1.put("wqyyl", b(var0.substring(5, 9)).substring(12, 13));
                    var1.put("etc02pg", b(var0.substring(5, 9)).substring(13, 14));
                    var1.put("etc02pd", b(var0.substring(5, 9)).substring(14, 15));
                    var1.put("dcdld", b(var0.substring(5, 9)).substring(15, 16));
                    var1.put("qyylbz", b(var0.substring(9, 13)).substring(0, 1));
                    var1.put("cqlpg", b(var0.substring(9, 13)).substring(1, 2));
                    var1.put("cqlpd", b(var0.substring(9, 13)).substring(2, 3));
                    var1.put("param1", var0.substring(5, 9));
                    var1.put("param2", var0.substring(9, 13));
                    var1.put("param3", var0.substring(13, 17));
                    var1.put("year", var0.substring(17, 21));
                    var1.put("month", var0.substring(21, 23));
                    var1.put("day", var0.substring(23, 25));
                    var1.put("hour", var0.substring(25, 27));
                    var1.put("minute", var0.substring(27, 29));
                    var1.put("second", var0.substring(29, 31));
                    var1.put("machineId", var0.substring(31, 55));
                    break;
                case 'p':
                    var1.put("order", "M");
                    var1.put("type", "p");
                    var1.put("xtzt", var0.substring(5, 7));
                    var1.put("bjyl", var0.substring(7, 9));
                    var1.put("bjfs", var0.substring(9, 11));
                    var1.put("pmld", var0.substring(11, 13));
                    var1.put("yldw", var0.substring(13, 15));
                    var1.put("zmfg", var0.substring(15, 17));
                    var1.put("bxfg", var0.substring(17, 19));
                    var1.put("yy", var0.substring(19, 21));
                    var1.put("etcookg", var0.substring(21, 23));
                    var1.put("hfnckg", var0.substring(23, 25));
                    var1.put("machineId", var0.substring(25, 49));
                    break;
                case 'q':
                    var1.put("order", "M");
                    var1.put("type", "q");
                    var1.put("blz", var0.substring(5, 7));
                    var1.put("machineId", var0.substring(7, 31));
                }
            }

            return a((Map)var1).equals(var0.substring(var0.length() - 3, var0.length() - 1)) ? var1 : null;
        } else {
            return null;
        }
    }

    private static Map a(String var0) {
        if (var0 != null && !var0.equals("") && var0.length() >= 8 && var0.startsWith("<")) {
            HashMap var1 = new HashMap();
            if (var0.charAt(3) == 'M') {
                switch(var0.charAt(4)) {
                case 'h':
                    var1.put("order", "M");
                    var1.put("type", "h");
                    var1.put("machineId", var0.substring(5, var0.length() - 3));
                    break;
                case 'i':
                    var1.put("order", "M");
                    var1.put("type", "i");
                    var1.put("secretKey", var0.substring(5, 9));
                    var1.put("userType", var0.substring(9, 11));
                    var1.put("hxms", var0.substring(11, 13));
                    var1.put("ynd", var0.substring(13, 15));
                    var1.put("cql", var0.substring(15, 19));
                    var1.put("xqsj", var0.substring(19, 23));
                    var1.put("hqsj", var0.substring(23, 27));
                    var1.put("ylsssj", var0.substring(27, 31));
                    var1.put("hxpl", var0.substring(31, 33));
                    var1.put("txzq", var0.substring(33, 35));
                    var1.put("xqls", var0.substring(35, 39));
                    var1.put("cflx", var0.substring(39, 41));
                    var1.put("cfyz", var0.substring(41, 43));
                    var1.put("ptsj", var0.substring(43, 45));
                    var1.put("hqcf", var0.substring(45, 47));
                    var1.put("hqmzy", var0.substring(47, 49));
                    var1.put("xqyl", var0.substring(49, 51));
                    var1.put("zcyl", var0.substring(51, 53));
                    var1.put("cfc", var0.substring(53, 55));
                    var1.put("zxyl", var0.substring(55, 57));
                    var1.put("zxpl", var0.substring(57, 59));
                    var1.put("ylxz", var0.substring(59, 61));
                    var1.put("hxzhyl", var0.substring(61, 63));
                    var1.put("coomksz", var0.substring(63, 67));
                    var1.put("machineId", var0.substring(67, 91));
                    break;
                case 'j':
                    var1.put("order", "M");
                    var1.put("type", "j");
                    var1.put("secretKey", var0.substring(5, 9));
                    var1.put("qdylsx", var0.substring(9, 11));
                    var1.put("qdylxx", var0.substring(11, 13));
                    var1.put("fztqlsx", var0.substring(13, 15));
                    var1.put("fztqlxx", var0.substring(15, 17));
                    var1.put("hxplsx", var0.substring(17, 19));
                    var1.put("zxsj", var0.substring(19, 21));
                    var1.put("yndsx", var0.substring(21, 23));
                    var1.put("yndxx", var0.substring(23, 25));
                    var1.put("cqlsx", var0.substring(25, 29));
                    var1.put("cqlxx", var0.substring(29, 33));
                    var1.put("hmeyhtsx", var0.substring(33, 35));
                    var1.put("hmeyhtxx", var0.substring(35, 37));
                    var1.put("machineId", var0.substring(37, 61));
                    break;
                case 'k':
                    var1.put("order", "M");
                    var1.put("type", "k");
                    var1.put("qdfy", var0.substring(5, 9));
                    var1.put("pty", var0.substring(9, 13));
                    var1.put("pjy", var0.substring(13, 17));
                    var1.put("hxmzy", var0.substring(17, 21));
                    var1.put("p01", var0.substring(21, 25));
                    var1.put("zdxqls", var0.substring(25, 29));
                    var1.put("zdhqls", var0.substring(29, 33));
                    var1.put("xrcql", var0.substring(33, 37));
                    var1.put("hccql", var0.substring(37, 41));
                    var1.put("xrfztql", var0.substring(41, 45));
                    var1.put("hcfztql", var0.substring(45, 49));
                    var1.put("dymhql", var0.substring(49, 53));
                    var1.put("xqsj", var0.substring(53, 57));
                    var1.put("hqsj", var0.substring(57, 61));
                    var1.put("hxsj", var0.substring(61, 65));
                    var1.put("xhb", var0.substring(65, 69));
                    var1.put("jxtqpl", var0.substring(69, 73));
                    var1.put("zzhxpl", var0.substring(73, 77));
                    var1.put("qz", var0.substring(77, 81));
                    var1.put("jtsyx", var0.substring(81, 85));
                    var1.put("dtsyx", var0.substring(85, 89));
                    var1.put("yrynd", var0.substring(89, 93));
                    var1.put("hxg", var0.substring(93, 97));
                    var1.put("qkhxzs", var0.substring(97, 101));
                    var1.put("etc02", var0.substring(101, 105));
                    var1.put("machineId", var0.substring(105, 129));
                case 'l':
                case 'm':
                default:
                    break;
                case 'n':
                    var1.put("order", "M");
                    var1.put("type", "n");
                    var1.put("tqzt", var0.substring(5, 9));
                    var1.put("qdyl", var0.substring(9, 13));
                    var1.put("hxls", var0.substring(13, 17));
                    var1.put("hxrl", var0.substring(17, 21));
                    var1.put("coobxz", var0.substring(21, 25));
                    var1.put("machineId", var0.substring(25, 49));
                    break;
                case 'o':
                    var1.put("order", "M");
                    var1.put("type", "o");
                    var1.put("qdylpg", b(var0.substring(5, 9)).substring(0, 1));
                    var1.put("qdylpd", b(var0.substring(5, 9)).substring(1, 2));
                    var1.put("fztqlpg", b(var0.substring(5, 9)).substring(2, 3));
                    var1.put("fztqlpd", b(var0.substring(5, 9)).substring(3, 4));
                    var1.put("hzzx", b(var0.substring(5, 9)).substring(4, 5));
                    var1.put("hxplpg", b(var0.substring(5, 9)).substring(5, 6));
                    var1.put("fiopg", b(var0.substring(5, 9)).substring(6, 7));
                    var1.put("fiopd", b(var0.substring(5, 9)).substring(7, 8));
                    var1.put("hxgdtl", b(var0.substring(5, 9)).substring(8, 9));
                    var1.put("llcgqgz", b(var0.substring(5, 9)).substring(9, 10));
                    var1.put("xqfgz", b(var0.substring(5, 9)).substring(10, 11));
                    var1.put("peepfgz", b(var0.substring(5, 9)).substring(11, 12));
                    var1.put("wqyyl", b(var0.substring(5, 9)).substring(12, 13));
                    var1.put("etc02pg", b(var0.substring(5, 9)).substring(13, 14));
                    var1.put("etc02pd", b(var0.substring(5, 9)).substring(14, 15));
                    var1.put("dcdld", b(var0.substring(5, 9)).substring(15, 16));
                    var1.put("qyylbz", b(var0.substring(9, 13)).substring(0, 1));
                    var1.put("cqlpg", b(var0.substring(9, 13)).substring(1, 2));
                    var1.put("cqlpd", b(var0.substring(9, 13)).substring(2, 3));
                    var1.put("param1", var0.substring(5, 9));
                    var1.put("param2", var0.substring(9, 13));
                    var1.put("param3", var0.substring(13, 17));
                    var1.put("year", var0.substring(17, 21));
                    var1.put("month", var0.substring(21, 23));
                    var1.put("day", var0.substring(23, 25));
                    var1.put("hour", var0.substring(25, 27));
                    var1.put("minute", var0.substring(27, 29));
                    var1.put("second", var0.substring(29, 31));
                    var1.put("machineId", var0.substring(31, 55));
                    break;
                case 'p':
                    var1.put("order", "M");
                    var1.put("type", "p");
                    var1.put("xtzt", var0.substring(5, 7));
                    var1.put("bjyl", var0.substring(7, 9));
                    var1.put("bjfs", var0.substring(9, 11));
                    var1.put("pmld", var0.substring(11, 13));
                    var1.put("yldw", var0.substring(13, 15));
                    var1.put("zmfg", var0.substring(15, 17));
                    var1.put("bxfg", var0.substring(17, 19));
                    var1.put("yy", var0.substring(19, 21));
                    var1.put("etcookg", var0.substring(21, 23));
                    var1.put("hfnckg", var0.substring(23, 25));
                    var1.put("machineId", var0.substring(25, 49));
                    break;
                case 'q':
                    var1.put("order", "M");
                    var1.put("type", "q");
                    var1.put("blz", var0.substring(5, 7));
                    var1.put("machineId", var0.substring(7, 31));
                }
            }

            return a((Map)var1).equals(var0.substring(var0.length() - 3, var0.length() - 1)) ? var1 : null;
        } else {
            return null;
        }
    }

    public static String generateAh() {
        return "<02Ahff0a>";
    }

    private static String a() {
        return "<02Ahff0a>";
    }

    public static String generateAi() {
        return "<02Aiff09>";
    }

    private static String b() {
        return "<02Aiff09>";
    }

    public static String generateAj() {
        return "<02Ajff08>";
    }

    private static String c() {
        return "<02Ajff08>";
    }

    public static String generateAk() {
        return "<02Akff07>";
    }

    private static String d() {
        return "<02Akff07>";
    }

    public static String generateAm(String var0, String var1, String var2, String var3, String var4, String var5, String var6, String var7, String var8, String var9, String var10, String var11, String var12) {
        String var13 = var0 + var1 + var2 + var3 + var4 + var5 + var6 + var7 + var8 + var9 + var10 + var11 + var12;
        HashMap var14;
        (var14 = new HashMap()).put("order", "A");
        var14.put("type", "m");
        var14.put("key", var0);
        var14.put("Pmax", var1);
        var14.put("Pmin", var2);
        var14.put("Lmax", var3);
        var14.put("Lmin", var4);
        var14.put("Hmax", var5);
        var14.put("Zxtime", var6);
        var14.put("Ymax", var7);
        var14.put("Ymin", var8);
        var14.put("Cmax", var9);
        var14.put("Cmin", var10);
        var14.put("Coomax", var11);
        var14.put("Coomin", var12);
        var0 = a((Map)var14);
        return "<20Am" + var13 + var0 + ">";
    }

    private static String a(String var0, String var1, String var2, String var3, String var4, String var5, String var6, String var7, String var8, String var9, String var10, String var11, String var12) {
        String var13 = var0 + var1 + var2 + var3 + var4 + var5 + var6 + var7 + var8 + var9 + var10 + var11 + var12;
        HashMap var14;
        (var14 = new HashMap()).put("order", "A");
        var14.put("type", "m");
        var14.put("key", var0);
        var14.put("Pmax", var1);
        var14.put("Pmin", var2);
        var14.put("Lmax", var3);
        var14.put("Lmin", var4);
        var14.put("Hmax", var5);
        var14.put("Zxtime", var6);
        var14.put("Ymax", var7);
        var14.put("Ymin", var8);
        var14.put("Cmax", var9);
        var14.put("Cmin", var10);
        var14.put("Coomax", var11);
        var14.put("Coomin", var12);
        var0 = a((Map)var14);
        return "<20Am" + var13 + var0 + ">";
    }

    public static String generateAn() {
        return "<02Anff04>";
    }

    private static String e() {
        return "<02Anff04>";
    }

    public static String generateAl(String var0, String var1, String var2, String var3, String var4, String var5, String var6, String var7, String var8, String var9, String var10, String var11, String var12, String var13, String var14, String var15, String var16, String var17, String var18, String var19, String var20, String var21, String var22) {
        String var23 = var0 + var1 + var2 + var3 + var4 + var5 + var6 + var7 + var8 + var9 + var10 + var11 + var12 + var13 + var14 + var15 + var16 + var17 + var18 + var19 + var20 + var21 + var22;
        HashMap var24;
        (var24 = new HashMap()).put("order", "A");
        var24.put("type", "l");
        var24.put("key", var0);
        var24.put("userType", var1);
        var24.put("Hxms", var2);
        var24.put("Ynd", var3);
        var24.put("Cql", var4);
        var24.put("Xqbl", var5);
        var24.put("Hqbl", var6);
        var24.put("PreUpTime", var7);
        var24.put("Hxpl", var8);
        var24.put("Txzq", var9);
        var24.put("Xqls", var10);
        var24.put("Cfyz", var11);
        var24.put("Ptsj", var12);
        var24.put("Hqcf", var13);
        var24.put("Hqmzy", var14);
        var24.put("Xqyl", var15);
        var24.put("Zcyl", var16);
        var24.put("Cfc", var17);
        var24.put("Zxyl", var18);
        var24.put("Zxpl", var19);
        var24.put("Ylxz", var20);
        var24.put("Hxzhyl", var21);
        var24.put("Coomksz", var22);
        var0 = a((Map)var24);
        return "<3eAl" + var23 + var0 + ">";
    }

    private static String a(String var0, String var1, String var2, String var3, String var4, String var5, String var6, String var7, String var8, String var9, String var10, String var11, String var12, String var13, String var14, String var15, String var16, String var17, String var18, String var19, String var20, String var21, String var22) {
        String var23 = var0 + var1 + var2 + var3 + var4 + var5 + var6 + var7 + var8 + var9 + var10 + var11 + var12 + var13 + var14 + var15 + var16 + var17 + var18 + var19 + var20 + var21 + var22;
        HashMap var24;
        (var24 = new HashMap()).put("order", "A");
        var24.put("type", "l");
        var24.put("key", var0);
        var24.put("userType", var1);
        var24.put("Hxms", var2);
        var24.put("Ynd", var3);
        var24.put("Cql", var4);
        var24.put("Xqbl", var5);
        var24.put("Hqbl", var6);
        var24.put("PreUpTime", var7);
        var24.put("Hxpl", var8);
        var24.put("Txzq", var9);
        var24.put("Xqls", var10);
        var24.put("Cfyz", var11);
        var24.put("Ptsj", var12);
        var24.put("Hqcf", var13);
        var24.put("Hqmzy", var14);
        var24.put("Xqyl", var15);
        var24.put("Zcyl", var16);
        var24.put("Cfc", var17);
        var24.put("Zxyl", var18);
        var24.put("Zxpl", var19);
        var24.put("Ylxz", var20);
        var24.put("Hxzhyl", var21);
        var24.put("Coomksz", var22);
        var0 = a((Map)var24);
        return "<3eAl" + var23 + var0 + ">";
    }

    public static String generateAo() {
        return "<02Aoff03>";
    }

    private static String f() {
        return "<02Aoff03>";
    }

    public static String generateAp(String var0, String var1, String var2, String var3, String var4, String var5, String var6, String var7, String var8, String var9) {
        String var10 = var0 + var1 + var2 + var3 + var4 + var5 + var6 + var7 + var8 + var9;
        HashMap var11;
        (var11 = new HashMap()).put("order", "A");
        var11.put("type", "p");
        var11.put("xtzt", var0);
        var11.put("yl", var1);
        var11.put("bjfs", var2);
        var11.put("ld", var3);
        var11.put("yldw", var4);
        var11.put("ckfg", var5);
        var11.put("bxfg", var6);
        var11.put("yy", var7);
        var11.put("cookg", var8);
        var11.put("hfnckg", var9);
        var0 = a((Map)var11);
        return "<14Ap" + var10 + var0 + ">";
    }

    private static String a(String var0, String var1, String var2, String var3, String var4, String var5, String var6, String var7, String var8, String var9) {
        String var10 = var0 + var1 + var2 + var3 + var4 + var5 + var6 + var7 + var8 + var9;
        HashMap var11;
        (var11 = new HashMap()).put("order", "A");
        var11.put("type", "p");
        var11.put("xtzt", var0);
        var11.put("yl", var1);
        var11.put("bjfs", var2);
        var11.put("ld", var3);
        var11.put("yldw", var4);
        var11.put("ckfg", var5);
        var11.put("bxfg", var6);
        var11.put("yy", var7);
        var11.put("cookg", var8);
        var11.put("hfnckg", var9);
        var0 = a((Map)var11);
        return "<14Ap" + var10 + var0 + ">";
    }

    private static String b(String var0) {
        if (var0 != null && var0.length() % 2 == 0) {
            String var1 = "";

            for(int var3 = 0; var3 < var0.length(); ++var3) {
                String var2 = "0000" + Integer.toBinaryString(Integer.parseInt(var0.substring(var3, var3 + 1), 16));
                var1 = var1 + var2.substring(var2.length() - 4);
            }

            return var1;
        } else {
            return null;
        }
    }

    private static String a(Map var0) {
        StringBuilder var1 = new StringBuilder();
        Iterator var2;
        Entry var3;
        String var4;
        if (((String)var0.get("type")).equals("o")) {
            var2 = var0.entrySet().iterator();

            while(true) {
                do {
                    if (!var2.hasNext()) {
                        var4 = (var4 = String.valueOf(Integer.toHexString(~Integer.parseInt(d(c(var1.toString())), 16) & 127))).length() > 1 ? var4 : "0".concat(String.valueOf(var4));
                        return var4;
                    }
                } while(!((String)(var3 = (Entry)var2.next()).getKey()).equals("order") && !((String)var3.getKey()).equals("type") && !((String)var3.getKey()).equals("param1") && !((String)var3.getKey()).equals("param2") && !((String)var3.getKey()).equals("param3") && !((String)var3.getKey()).equals("year") && !((String)var3.getKey()).equals("month") && !((String)var3.getKey()).equals("day") && !((String)var3.getKey()).equals("hour") && !((String)var3.getKey()).equals("minute") && !((String)var3.getKey()).equals("machineId") && !((String)var3.getKey()).equals("second"));

                var1.append((String)var3.getValue());
            }
        } else {
            var2 = var0.entrySet().iterator();

            while(var2.hasNext()) {
                var3 = (Entry)var2.next();
                var1.append((String)var3.getValue());
            }

            var4 = (var4 = String.valueOf(Integer.toHexString(~Integer.parseInt(d(c(var1.toString())), 16) & 127))).length() > 1 ? var4 : "0".concat(String.valueOf(var4));
            return var4;
        }
    }

    private static String c(String var0) {
        String var1 = "";

        for(int var2 = 0; var2 < var0.length(); ++var2) {
            String var3 = Integer.toHexString(var0.charAt(var2));
            var1 = var1 + var3;
        }

        return var1;
    }

    private static String d(String var0) {
        if (var0 != null && !var0.equals("")) {
            var0 = var0.replaceAll(" ", "");
            int var1 = 0;
            int var2;
            if ((var2 = var0.length()) % 2 != 0) {
                return "00";
            } else {
                for(int var3 = 0; var3 < var2; var3 += 2) {
                    String var4 = var0.substring(var3, var3 + 2);
                    var1 += Integer.parseInt(var4, 16);
                }

                return a(var1);
            }
        } else {
            return "00";
        }
    }

    private static String a(int var0) {
        int var1 = var0 / 256;
        var0 %= 256;
        return var1 > 255 ? a(var1) + b(var0) : b(var1) + b(var0);
    }

    private static String b(int var0) {
        String var2;
        if ((var2 = Integer.toHexString(var0)).length() < 2) {
            var2 = "0".concat(String.valueOf(var2));
        }

        return var2;
    }
}
